package com.carl.mall.feign;


import com.carl.common.utils.R;
import com.carl.mall.vo.SocialUser;
import com.carl.mall.vo.UserLoginVO;
import com.carl.mall.vo.UserRegisterVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("mall-member")
public interface MemberFeignService {

    @PostMapping("/member/member/register")
    R register(@RequestBody UserRegisterVO userRegisterVO);


    @RequestMapping("/member/member/login")
    R login(@RequestBody UserLoginVO userLoginVO);

    @RequestMapping("/member/member/oauth2/login")
    public R socialLogin(@RequestBody SocialUser vo);
}
